<div>
    <form class="form-horizontal bv-form"  role="form"  id="updateForm">
        <fieldset>
            <legend>基本信息</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">知识库名称</label>
                <div class="col-sm-5">
                    <input type="text"  disabled class="form-control" value="{$res.knowledge_name}" name="knowledge_name">

                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">类型</label>
                <div class="col-sm-5">
                    {if $res['knowledge_mold']==1}
                    <input type="text"  disabled class="form-control" value="团队知识库" name="knowledge_name">
                    {else / }
                    <input type="text"   disabled class="form-control" value="公共知识库" name="knowledge_name">
                    {/if}

                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">咨询类型</label>
                <div class="col-sm-5">
                    {if $res['knowledge_type']==1}
                    <input type="text" disabled  class="form-control" value="Banner咨询" name="knowledge_name">
                    {elseif $res['knowledge_type']==2  /}
                    <input type="text" disabled class="form-control" value="图文资讯" name="knowledge_name">
                    {else /}
                    <input type="text"  disabled class="form-control" value="技术资料" name="knowledge_name">
                    {/if}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">预览图</label>
                <div class="col-sm-3 file1_1" id="androimg" style="float:left">
                    <img src="{$res.knowledge_banner}" height="150" width="150"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">内容</label>
                <div class="col-sm-8">
                    <script id="container" name="knowledge_context" type="text/plain" style="width:500px;height:100%;min-height:400px;">
                        {$res.knowledge_context}
                    </script>
                </div>
            </div>
        </fieldset>
    </form>

</div>
<script src="static/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script src="static/ueditor/ueditor.all.js"></script>
<script type="text/javascript" charset="utf-8" src="static/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
    var ue = UE.getEditor('container',{
        toolbars: [
            [
                'undo', //撤销
                'redo', //重做
                'bold', //加粗
                'indent', //首行缩进
                'italic', //斜体
                'underline', //下划线
                'strikethrough', //删除线
                'fontborder', //字符边框
                'formatmatch', //格式刷
                'source', //源代码
                'cleardoc', //清空文档
                'simpleupload', //单图上传
                'justifyleft', //居左对齐
                'justifyright', //居右对齐
                'justifycenter', //居中对齐
                'justifyjustify', //两端对齐
            ]
        ]
    });

</script>




